package com.xuxin.baby.contract;

import com.xuxin.baby.bean.BaseBean;
import com.xuxin.baby.presenter.UserChildDataPresenter;

/**
 * Created by xu_xin
 * Created on 2020/10/23 0023
 * 宝宝信息
 */
public interface UserChildDataContract {

    interface Model {

        void addUserChild(UserChildDataPresenter presenter,
                          String tenantId,
                          String token,
                          String fatherId,
                          String avatar,
                          String nickname,
                          String birthday,
                          String sex,
                          String height,
                          String weight,
                          String headCircle);

        void updateUserChild(UserChildDataPresenter presenter,
                             String tenantId,
                             String token,
                             String childId,
                             String fatherId,
                             String avatar,
                             String nickname,
                             String birthday,
                             String sex,
                             String height,
                             String weight,
                             String headCircle);

        void deleteUserChild(UserChildDataPresenter presenter,
                             String tenantId,
                             String token,
                             String childId);
    }

    interface View extends BaseContract.view {

        void onSuccess(BaseBean baseBean);
    }

    interface Presenter extends BaseContract.presenter {

        void addUserChild(String tenantId,
                          String token,
                          String fatherId,
                          String avatar,
                          String nickname,
                          String birthday,
                          String sex,
                          String height,
                          String weight,
                          String headCircle);

        void updateUserChild(String tenantId,
                             String token,
                             String childId,
                             String fatherId,
                             String avatar,
                             String nickname,
                             String birthday,
                             String sex,
                             String height,
                             String weight,
                             String headCircle);

        void deleteUserChild(String tenantId,
                             String token,
                             String childId);

        void onSuccess(BaseBean baseBean);
    }
}